package com.sbio.udiapp.di;

import android.app.Activity;

import java.lang.ref.WeakReference;

public class ActivityManager {

    public static WeakReference<Activity> sCurrentActivityWeakRef;

    public static Activity getCurrentActivity() {
        return sCurrentActivityWeakRef.get();
    }

    public static void setCurrentActivity(Activity activity) {
        sCurrentActivityWeakRef = new WeakReference<>(activity);
    }
}
